package com.xframe.domain.e3sp.basedata;

import com.xframe.domain.BaseModel;
import com.xframe.xdal.core.annotation.*;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * @Description: 替换件查询视图信息
 * @ClassName: com.xframe.domain.e3sp.basedata.ReplacePartInfo
 * @Author: zhaofeng
 * @CreateTime: 2024/4/8
 **/
@Data
@Accessors(chain=true)
@XTable(value = "v_replace_parts_list", label = "替换件视图",tableType = TableType.View)
@XSelectItem(keyName = "replaceDId",codeName = "replaceCode",textName = "nameCn")
@XSelectItem(keyName = "replaceDId",codeName = "replaceCode",textName = "nameEn",language = "en")
@XBelongsTo(typeName = "com.xframe.domain.e3sp.basedata.SwitchCode",foreignKey = "switchCodeId", targetKey = "switchCodeId",as = "refSwitchCode")
public class ReplacePartInfo extends BaseModel {

    /**
     * 替代链ID
     */
    @XColumn(name = "replace_d_id", primaryKeyFlag = true,desc = "替代链ID")
    private Long replaceDId;

    /**
     * 替代链号
     */
    @XQueryCondition
    @XGridTableRef
    @XColumn(name = "replace_code",uniqueFlag = true,desc = "替代链号")
    private String replaceCode;


    /**
     * 互换码编码
     */
    @XColumn(name = "sw_code", uniqueFlag = true,desc = "互换码编码",length = 200)
    private String swCode;


    /**
     * 互换码名称
     */
    @XColumn(name = "sw_name",desc = "互换码名称",length = 200)
    private String swName;

    /**
     * 备件ID
     */
    @XColumn(name = "sou_spare_part_id",desc = "备件ID")
    private Long souPartId;

    /**
     * 备件编码
     */
    @XQueryCondition
    @XColumn(name = "sou_part_code",desc = "备件编码")
    private String souPartCode;

    /**
     * 备件名称
     */
    @XQueryCondition
    @XColumn(name = "sou_part_name",desc = "备件名称")
    private String souPartName;

    /**
     * 替换件备件编码
     */
    @XColumn(name = "replace_part_no",desc = "替换件备件编码")
    private String replacePartNo;

    /**
     * 替换件备件名称
     */
    @XColumn(name = "replace_part_name",desc = "替换件备件名称")
    private String replacePartName;

    /**
     * 替代链ID
     */
    @XColumn(name = "replace_id",desc = "替代链ID")
    private Long replaceId;

    /**
     * 互换码ID
     */
    @XQueryCondition
    @XColumn(name = "switch_code_id",desc = "互换码ID")
    private Long switchCodeId;

    /**
     * 成套件
     */
    @XColumn(name = "sup_part_code",desc = "成套件")
    private String supPartCode;

    /**
     * 备件清单ID
     */
    @XColumn(name = "spare_part_id",desc = "备件清单ID")
    private Long sparePartId;

    /**
     * 序号
     */
    @XColumn(name = "order_no",desc = "序号")
    private Integer orderNo;

    /**
     * 数量
     */
    @XColumn(name = "qty",desc = "数量")
    private Integer qty;


    /**
     * 备注
     */
    @XColumn(name = "remark",desc = "备注")
    private String remark;


    /**
     * 修改起始时间
     */
    @XQueryCondition
    @XColumn(name = "start_update_time",desc = "修改起始时间")
    private Date startUpdateTime;


    /**
     * 修改终止时间
     */
    @XQueryCondition
    @XColumn(name = "end_update_time",desc = "修改终止时间")
    private Date endUpdateTime;


    /**
     * 技术摘要
     */
    @XColumn(name = "summary",desc = "技术摘要")
    private String summary;

    /**
     * 互换码
     */
    private SwitchCode refSwitchCode;



}
